import { setDateFromObj, presistData } from '../../util'
export const changeUserInfo = (data: any) => {
  const allData = localStorage.getItem('allData')
  const state = allData ? JSON.parse(allData) : {}
  const projectData = setDateFromObj(state, data)
  presistData('allData', projectData)
  return projectData
}
